<template>
   <div style="background-color: #fff;">
       <!-- <headNav :isBack="false" :isHome="false" title="用户教程"></headNav>
       <div class="stepKu">
           <div class="step">第一步：完成用户帐号的注册</div>
           <img src="./img/step.png" alt="">
           <div class="step">第二步：填写孩子信息</div>
           <img src="./img/step.png" alt="">
           <div class="step">第三步：确认信息并提交班主任审核</div>
           <img src="./img/step.png" alt="">
           <div class="step">第四步：班主任通过审核</div>
           <img src="./img/step.png" alt="">
           <div class="step">第五步：登录系统开始使用功能</div>
       </div>
       <div class="loginUp" @click="goLogin">下一步</div> -->
   </div>
</template>
<script>
import headNav from '@/components/headNav/headNav'
import cookie from '@/util/cookie'
import {busiUrl} from '@/config/config'
export default {
    components:{
        headNav
    },
    data() {
        return {
            
        }
    },
    mounted() {
        // let domain = '.xueerqin.net'
        // cookie.set('qrcode',this.getQueryVariable('qrcode'),100,domain)
        localStorage.clear()
        localStorage.localQRCode = this.getQueryVariable('qrcode')
        localStorage.inviteUserId = this.getQueryVariable('inviteUserId')
        localStorage.role = this.getQueryVariable('role')
        localStorage.appid = this.getQueryVariable('appid')
        this.goLogin()
    },
    methods: {
        // 获取url参数
         getQueryVariable(variable){
                var query = window.location.search.substring(1)
                var vars = query.split("&")
                for (var i=0;i<vars.length;i++) {
                        var pair = vars[i].split("=")
                        if(pair[0] == variable){return pair[1]}
                }
                return(false)
            },
        goLogin(){
            // location.href = busiUrl + '/static/signUp.html'
            var url = location.origin + location.pathname
                   
             url = url.replace('index.html', 'static/signUp.html')
             location.href = url.split('?')[0]
        }
    }
}
</script>
<style scoped>
.loginUp{
    width: 5.60rem;
    height: 0.84rem;
    line-height: 0.84rem;
    text-align: center;
    color: #FFFFFF;
    font-size: 0.32rem;
    background: #128FEF;
    border-radius: 0.42rem;
    margin: 0 auto;
    margin-top: 0.46rem;
}
.stepKu{
    text-align: center;
    margin-top: 0.6rem;
}
.step{
    width: 5.60rem;
    height: 0.84rem;
    background: #F6F6F6;
    border-radius: 0.05rem;
    margin: 0 auto;
    line-height: 0.84rem;
    font-size: 0.3rem;
    color: #000000;
}
.stepKu img{
    width: 0.33rem;
    height: 0.38rem;
    margin: 0.2rem;
}
</style>